package com.nhncorp.lucy.template.dao;

import java.util.Map;

import com.nhncorp.lucy.common.util.DataMap;
import com.nhncorp.lucy.db.dao.AbstractSqlMapDAO;


public class HelloDAOImpl extends AbstractSqlMapDAO implements HelloDAO {

	public int insertGP(Map gpMap) {
		Object ret = insert("com.nhncorp.sample.insertGP", gpMap);
		return 0;
	}

	public String getDbKey() {
		return "sample2";
	}

	public Map selectGpdm() {
		return (Map)queryForList("com.nhncorp.sample.selectGpdm").get(0);
	}

	public int updateGpdm(String id) {
		Map datamMap = new DataMap();
		datamMap.put("no", id);
		return update("com.nhncorp.sample.updateGpdm", datamMap);
	}
}